/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ambimmort.calc;

/**
 *
 * @author 90426
 */
public class Demo {
    
    private double value;
    
    public void ac(){
        value = 0;
    }
    
    public void add(double number){
        value += number;
    }

    public double getValue() {
        return value;
    }
    
    /**
     *
     * @param args
     */
    public static void demo(String[] args){
        Demo calc = new Demo();
        calc.add(10);
        System.out.println(calc.getValue());
        calc.ac();
        System.out.println(calc.getValue());
    }
    
}
